<?php 
namespace app\model;
use think\Model;

class WxAssistantConfig extends Model
{	
    public static function getTypeCn($key){
        $list = ['baidu'=>'百度文心','360'=>'360','ali'=>'通义'];
        return $list[$key];
    }

    public static function getTypeList(){
        $list = ['baidu'=>'百度文心','360'=>'360','ali'=>'通义'];
        return $list;
    }

    public static function getTypeConfig($key){
        $list = ['baidu'=>[
            'name'=>'百度文心',
            'image'=>'20240401/3CCEB3FF632D4D58A81F9FA6692D5BFF.png'
        ],'360'=>[
            'name'=>'360大模型',
            'image'=>'20240401/41F4C8FC69E44FFFB08B7BE592C92978.png'
        ],'ali'=>[
            'name'=>'通义千问',
            'image'=>'20240401/7FA4ECC69F5846E2B1156FFD303799CB.png'
        ]];
        return $list[$key];
    }


    public static function getRequestTypeCn($key){
        $list = ['HTTP'=>'HTTP','WSS'=>'WSS','SSE'=>'SSE'];
        return $list[$key];
    }

    public static function getRequestTypeList(){
        $list = ['HTTP'=>'HTTP','WSS'=>'WSS','SSE'=>'SSE'];
        return $list;
    }
    
    public static function getCommonIsCn($key){
        $list = [1=>'是',0=>'否'];
        return $list[$key];
    }

    public static function getCommonIsList(){
        $list = [1=>'是',0=>'否'];
        return $list;
    }
}


 ?>